<?php
/**
 * 客服聊天转换
 * @return
 * @author yuncran@126.com
 */

namespace app\api\listener;

use app\model\FriendModel;
use think\facade\Db;

class Service
{

    /**
     *
     * @param $data
     * @return bool
     * @author yuncran@126.com
     */
    public function handle($param)
    {
        try {
            FriendModel::where('friend_id', $param['friend_id'])->update(['update_time' => time()]);
        } catch (\Exception $e) {
            return echoShutDown($e->getMessage() . $e->getLine());
        }
        return true;
    }

}